package com.zte.claa.inficombo.csa.app.service.gprs.bean;

public class GPRSDevCommand {
	public static final short GPRS_REGRSP  = 0x11;
	public static final short GPRS_HBRSP  = 0x12;
	public static final short GPRS_DOWNLINK  = 0x13;
	
	private byte   cmdtype;
	private String deveui;
	private int    paylen;
	private byte[] payload;
	
	public GPRSDevCommand(){
		
	}

	public String getDeveui() {
		return deveui;
	}

	public void setDeveui(String deveui) {
		this.deveui = deveui;
	}

	public byte[] getPayload() {
		return payload;
	}

	public void setPayload(byte[] payload) {
		this.payload = payload;
	}
	
	public byte getCmdtype() {
		return cmdtype;
	}

	public void setCmdtype(byte cmdtype) {
		this.cmdtype = cmdtype;
	}

	public int getPaylen() {
		return paylen;
	}

	public void setPaylen(int paylen) {
		this.paylen = paylen;
	}

	public String toString(){
		StringBuilder sb = new StringBuilder();
		sb.append("cmdtype: ").append(this.cmdtype).append("\n");
		sb.append("deveui: ").append(this.deveui).append("\n");
		sb.append("paylen: ").append(this.paylen).append("\n");
		//sb.append("payload: ").append(this.payload);
		return sb.toString();
	}
}
